﻿<style type="text/css">
<!--
body,td,th {
	font-size: 12px;
}
-->
</style>
          <table width="100%" border="0" cellpadding="0" cellspacing="0" class="in_dazhe">

<?php
             if($ClassID!=""){
		    $sql="SELECT * FROM Netsys_Product where ClassID=".$ClassID." order by NID desc";
		     }else{
             $sql="SELECT * FROM Netsys_Product order by NID desc";
			 }

//取得总信息数
$result=mysql_query($sql);
$total=mysql_num_rows($result);
//调用pageft()，每页显示10条信息（使用默认的20时，可以省略此参数），使用本页URL（默认，所以省略掉）。
pageft($total,$onesum);
//现在产生的全局变量就派上用场了：
if($ClassID!=""){
$result=mysql_query("SELECT * FROM Netsys_Product where ClassID=".$ClassID." order by NID desc limit $firstcount,$displaypg");
}else{
$result=mysql_query("SELECT * FROM Netsys_Product order by NID desc limit $firstcount,$displaypg");
			 }
if($total!=0){
while($row=mysql_fetch_array($result)){
?>

              <td><div id="bigPic" style="display:none; position:absolute;"><img src="PHPCMS/UploadImg/<? echo $row['Uppic']; ?>"></div>
			            <table border="0" cellpadding="3" cellspacing="1" bgcolor="#E7E7E7">
                <tr>
                  <td height="30" bgcolor="#FFFFFF"><a href="<? echo $url;?>?NID=<? echo $row['NID'];?>" target="_blank"><img src="PHPCMS/UploadImg/<? echo $row['Uppic']; ?>" name="image" width="120" height="100" border="0" id="image" onmouseover="document.getElementById('bigPic').style.display=''" onmouseout="document.getElementById('bigPic').style.display='none'" /></a></td>
                </tr>
                <tr>
                  <td height="30" align="center" bgcolor="#FFFFFF"><a href="<? echo $url;?>?NID=<? echo $row['NID'];?>" target="_blank"><? echo $row['NTitle'];?></a></td>
                </tr>
              </table>
			  </td>
<?
if(($k % $fornum)==0)
{
echo "</tr>";
}
$k++;
}
?>
          </table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height="40" align="center">
<?
echo $pagenav;
?> 
            
	</td>
  </tr>
</table>
<?php
}
else{
?>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td height="30" align="center">暂无信息，敬请期待！</td>
                </tr>
          </table>
            <?
			}
			?>